package com.sx.wechat.security;

import com.alibaba.fastjson.JSON;
import com.sx.core.model.Information;
import com.sx.core.utils.JwtUtils;

/**
 * Created by lihao on 2018/11/27.
 */
public class Test {
    public static void main(String[] args){
        Information information=new Information();
        information.setId("25bb9b09a028401d99acef74311a0f65");
        information.setName("d");
        String sql="select rs.*,\n" +
                "i.id,s.score,i.name,i.sno,i.sex,i.idno\n" +
                "from t_order_rec_stu rs\n" +
                "JOIN t_order o ON rs.orderid=o.id \n" +
                "join t_information i on rs.stuid=i.id\n" +
                "LEFT JOIN t_all_score s on rs.orderid=s.orderid\n" +
                "where  o.teacherid=:teacherid \n";

        String str= JwtUtils.createJWTObj("ds", JSON.toJSONString(information));
        System.out.println(str);

    }
}
